﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using XNAControls;

namespace BGSpaceShooter.View
{
    public class MenuDrawer : IDrawer
    {
        private Menu menu;

        public MenuDrawer(Menu menu)
        {
            this.menu = menu;
        }

        #region IDrawer Members

        public void Draw(Camera camera)
        {
            SpriteBatch spriteBatch = new SpriteBatch(Display.GraphicsDevice);
            spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.NonPremultiplied);
            menu.Draw(spriteBatch);
            spriteBatch.End();
        }


        public IEnumerable<ParticleSystem.EffectDrawer> GetEffectDrawers()
        {
            return new List<ParticleSystem.EffectDrawer>();
        }

        #endregion
    }
}
